export default {
  path: '/filemanage',
  name: 'filemanage',
  icon: 'folder-open',
  authority: ['os:antd:archives'],
  routes: [
    // {
    //   path: '/filemanage/servicehandle',
    //   name: 'servicehandle',
    //   authority: ['os:archives:handle'],
    // },
    {
      path: '/filemanage/servicehandle',
      name: 'servicehandle',
      hideChildrenInMenu: true,
      authority: ['os:archives:handle'],
      routes: [
        {
          path: '/filemanage/servicehandle',
          redirect: '/filemanage/servicehandle/index',
        },
        {
          path: '/filemanage/servicehandle/index',

          component: './ArchivesManage/ArchivesServiceHandle/Index',
        },
        {
          path: '/filemanage/servicehandle/add',
          name: 'add',
          component: './ArchivesManage/ArchivesServiceHandle/Add',
        },
        {
          path: '/filemanage/servicehandle/detail',
          name: 'detail',
          component: './ArchivesManage/ArchivesServiceHandle/Detail',
        },
        {
          path: '/filemanage/servicehandle/update',
          name: 'update',
          component: './ArchivesManage/ArchivesServiceHandle/Update',
        },
        {
          path: '/filemanage/servicehandle/batch',
          name: 'batch',
          component: './ArchivesManage/ArchivesServiceHandle/Batch',
        },

        {
          path: '/filemanage/servicehandle/contactHistory',
          name: 'contactHistory',
          component: './ArchivesManage/ArchivesServiceHandle/ContactHistory',
        },
        {
          path: '/filemanage/servicehandle/problem',
          name: 'problem',
          component: './ArchivesManage/ArchivesServiceHandle/Problem',
        },
        {
          path: '/filemanage/servicehandle/batchFeedback',
          name: 'batchFeedback',
          component: './components/Problem/ProblemPage/BatchFeedback',
        },
      ],
    },
    {
      path: '/filemanage/supplymanage',
      name: 'supplymanage',
      authority: ['os:archives:supp'],
      hideChildrenInMenu: true,
      routes: [
        {
          path: '/filemanage/supplymanage',
          redirect: '/filemanage/supplymanage/index',
        },
        {
          path: '/filemanage/supplymanage/index',

          component: './ArchSupplyManage/Supplymanage/Index',
        },
        {
          path: '/filemanage/supplymanage/add',

          component: './ArchSupplyManage/Supplymanage/Add',
        },
      ],
    },
  ],
};
